package com.cloudbroker.bcs.platform.ltb.middle.service.impl;

import com.cloudbroker.bcs.common.dao.base.DAOBase;
import com.cloudbroker.bcs.platform.ltb.middle.dao.ViewpointCombinationDAO;
import com.cloudbroker.bcs.platform.ltb.middle.entity.ViewpointCombination;
import com.cloudbroker.bcs.platform.ltb.middle.service.ViewpointCombinationService;
import com.cloudbroker.bcs.platform.ltb.middle.service.base.TenantServiceImplBase;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by world on 16/7/8.
 */
@Service
public class ViewpointCombinationServiceImpl extends TenantServiceImplBase<ViewpointCombination, String>
    implements ViewpointCombinationService {

    @Resource
    private ViewpointCombinationDAO viewpointCombinationDAO;

    @Override
    protected DAOBase<ViewpointCombination, String> getDAO(){
        return viewpointCombinationDAO;
    }

    @Override
    public List<ViewpointCombination> queryByViewpoint(ViewpointCombination viewpointCombination){
        return viewpointCombinationDAO.queryByViewpoint(viewpointCombination);
    }

    @Override
    public void deleteByViewpoint(ViewpointCombination viewpointCombination) {
        viewpointCombinationDAO.deleteByViewpoint(viewpointCombination);
    }

}
